#ifndef _SERIAL_H_
#define _SERIAL_H_

/*Serial port pc side interfacing code*/

#define COM1 0x3f8
#define COM2 0x2f8
#define COM3 0x3e8
#define COM4 0x2e8

#define IRQ_COM1 4
#define IRQ_COM2 3
#define IRQ_COM3 4
#define IRQ_COM4 3

#define BDA_COM1 0x400
#define BDA_COM2 0x402
#define BDA_COM3 0x404
#define BDA_COM4 0x406


#define TXBUF(comaddr) (comaddr)
#define RXBUF(comaddr) (comaddr)
#define D_DIVLATCHLOW(comaddr) (comaddr)

#define IER(comaddr) (comaddr+1)	/*Interrupt control*/
#define D_DIVLATCHHIGH(comaddr) (comaddr+1)

#define IIR(comaddr) (comaddr+2)	/*Interrupt identification register*/
#define FCR(comaddr) (comaddr+2)	/*FIFO control*/

#define LCR(comaddr) (comaddr+3)	/*Line Control Register*/

#define MCR(comaddr) (comaddr+4)	/*Modem Control Register*/

#define LSR(comaddr) (comaddr+5)	/*Line status register*/

#define MSR(comaddr) (comaddr+6)	/*Modem status register*/

#define SCRA(comaddr) (comaddr+7)	/*Scratch register*/

#define MAXCOMSPEED 115200

typedef struct {
}serialdev;

#endif
